﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Workflows.Components.Rules
{
    [Serializable]
    public class RuleDecision
    {
        private bool _ContinueIfTrue;
        /// <summary></summary>
        public bool ContinueIfTrue
        {
            get
            {
                return this._ContinueIfTrue;
            }
            set
            {
                this._ContinueIfTrue = value;
            }
        }

        private bool _ContinueIfFalse;
        /// <summary></summary>
        public bool ContinueIfFalse
        {
            get
            {
                return this._ContinueIfFalse;
            }
            set
            {
                this._ContinueIfFalse = value;
            }
        }

        public RuleDecision()
        {
            this._ContinueIfFalse = true;
            this._ContinueIfTrue = false;
        }

        public RuleDecision(bool continueWhenTrue, bool continueWhenFalse)
        {
            this._ContinueIfTrue = continueWhenTrue;
            this.ContinueIfFalse = continueWhenFalse;
        }
    }
}
